<div class="related d-flex justify-content-between bg-light flex-wrap" role="navigation" aria-label="related navigation">
    <ol class="breadcrumb">
        <li class="breadcrumb-item"><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a></li>
        {%- for parent in parents %}
            <li class="breadcrumb-item"><a href="{{ parent.link|e }}"
                   {% if loop.last %}
                     {{ accesskey("U") }}
                     class="active"
                   {% endif %}>{{ parent.title }}</a></li>
        {%- endfor %}
        <li class="breadcrumb-item active">{{ title }}</li>
    </ol>
   <div>
      <div class="btn-group btn-group-sm" role="group" aria-label="Basic example">
          {%- if prev %}
           <a href="{{ prev.link|e }}" title="{{ _('Previous Chapter: ') + prev.title|striptags }}" class="btn btn-primary" role="botton" {{ accesskey("P") }}>
               {{ "&laquo;"|safe }} {{ prev.title|striptags|truncate(length=16, killwords=True) }}
           </a>
           {%- endif %}
           {%- if next %}
           <a href="{{ next.link|e }}" title="{{ _('Next Chapter: ') + next.title|striptags }}" class="btn btn-primary" role="botton" {{ accesskey("N") }}>
               {{ next.title|striptags|truncate(length=16, killwords=True) }} {{ "&raquo;"|safe }}
           </a>
           {%- endif %}
       </div>
   </div>
</div>
